import request from '@/utils/request';

export async function getErrorPriorityByPage (params: any) {
    return request('/api/product/getErrorPriorityByPage', {
    method: 'POST',
    data: params,
  });
}



export async function addErrorPriority (params: any) {
    return request('/api/product/addErrorPriority', {
    method: 'POST',
    data: params,
  });
}

export async function updateErrorPriority (params: any) {
    return request('/api/product/updateErrorPriority', {
    method: 'POST',
    data: params,
  });
}

export async function delErrorPriority (params: any) {
    return request('/api/product/delErrorPriority', {
    method: 'POST',
    data: params,
  });
}


export async function exportErrorPriority(params: any) {
    return request('/api/product/exportErrorPriority', {
    method: 'POST',
    data: params,
    responseType: 'blob',
  });
}
export default { getErrorPriorityByPage, addErrorPriority, updateErrorPriority, delErrorPriority, exportErrorPriority }
